<%@ Control Language="C#" AutoEventWireup="true" Codebehind="TreeControl.ascx.cs"
Inherits="Web.Controls.TreeControl" %>

<script type="text/javascript">

    function HideTreeDiv(obj) {
        obj.style.display = "none";
    }

    function ShowTreeDiv(obj) {
        obj.style.display = "";
    }

</script>

<table>
    <tr>
        <td class="table3">
            <asp:TextBox ID="txtFatherMenuName" runat="server" Width="100px" Enabled="false"></asp:TextBox>
        </td>
        <td class="table3" align="center">
            <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Images/dropdownlist.GIF"
                             OnClick="ImageButton1_Click" ImageAlign="Middle"/>
        </td>
    </tr>
</table>
<div id="divtree" style="position: absolute;" visible="false" runat="server" onmouseover="ShowTreeDiv(this);"
     onmouseout="HideTreeDiv(this);">
    <table>
        <tr>
            <td>
                <asp:Panel ID="panel1" runat="server" BorderStyle="solid" BorderWidth="1px" BorderColor="black"
                           Height="200px" ScrollBars="Auto" Width="300px" BackColor="white">
                    <asp:TreeView ID="crTreeViewAllMenus" runat="server" CssClass="treeVi" NodeIndent="10"
                                  ShowLines="True" OnSelectedNodeChanged="crTreeViewAllMenus_SelectedNodeChanged">
                        <ParentNodeStyle Font-Bold="True" ForeColor="Black" ImageUrl="~/Images/parentfolders.gif"/>
                        <HoverNodeStyle Font-Underline="False"/>
                        <SelectedNodeStyle Font-Underline="True" HorizontalPadding="0px" VerticalPadding="0px"/>
                        <RootNodeStyle ImageUrl="~/Images/parentfolders.gif"/>
                        <LeafNodeStyle ImageUrl="~/Images/sonfolder1.gif"/>
                        <NodeStyle Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" HorizontalPadding="5px"
                                   NodeSpacing="0px" VerticalPadding="0px"/>
                    </asp:TreeView>
                </asp:Panel>
            </td>
        </tr>
    </table>
</div>